export default function install(app) {
  app.deactivated('shake', (el, binding) => {
    if (binding.value) {
      //晃动
      el.style.animation = 'shake 0.82s cubic-bezier(.36,.07,.19,.97) both'
      el.addEventListener('animationend', () => {
        el.style.animation = ''
      })
    }
  })
}
